package com.example.course.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 登录视图对象，用于返回登录成功的信息
 *
 * @author Jasmine-drs
 * @date 2025/4/23 10:30
 */
@Data
@ApiModel(value = "LoginVO", description = "登录视图对象")
public class LoginVO {

	@ApiModelProperty("学生ID")
	private Integer id;

	@ApiModelProperty("姓名")
	private String name;

	@ApiModelProperty("学号")
	private String studentNum;

	@ApiModelProperty("性别，0为男，1为女，用作身份识别")
	private Integer sex;

	@ApiModelProperty("性别文本（男/女）")
	private String sexText;

	@ApiModelProperty("班级ID")
	private Integer classesId;

	@ApiModelProperty("班级名称")
	private String className;

	@ApiModelProperty("最近登录时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime loginTime;
} 